package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.base.domain.User;
import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.query.StatementQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StatementMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Statement record);

    Statement selectByPrimaryKey(Long id);

    List<Statement> selectAll();

    int updateByPrimaryKey(Statement record);

    List<Statement> selectForList(StatementQueryObject qo);

    Statement selectByAppointment(Long appointmentId);

    void updateByStart(@Param("statementId") Long statementId, @Param("statusPaid") Integer statusPaid);

    void updateByStatement(Statement statement);

    void updateByStatement2(Statement statement);

    User selectByUser(Long payeeId);
}